package factory;

import dao.ArithmeticDao;
import dao.impl.ArithmeticAddDaoImpl;
import dao.impl.ArithmeticDivisionImpl;
import dao.impl.ArithmeticMinusImpl;
import dao.impl.ArithmeticRideImpl;

public class ImplArithmeticResult {
    public ArithmeticDao getArithmeticDao(char symbol) {
        switch (symbol) {
            case '+':
                return new ArithmeticAddDaoImpl();
            case '-':
                return new ArithmeticMinusImpl();
            case '*':
                return new ArithmeticRideImpl();
            case '/':
                return new ArithmeticDivisionImpl();
        }
        return null;
    }
}
